<%
	def tableDefine=tableModel.tableDefine;
	def columns=tableDefine.columns;
	def pkColumn=tableDefine.getPkColumn();
    def pkJavaType=tableNameUtil.getDataType(pkColumn?.columnType);
%>package ${config.basePackage}${PubUtils.addStrAfterSeparator(config.category,".")}.service;

import com.znv.common.base.BaseCrudService;
import ${config.basePackage}${PubUtils.addStrAfterSeparator(config.category,".")}.dto.${tableDefine.id}AddDTO;
import ${config.basePackage}${PubUtils.addStrAfterSeparator(config.category,".")}.dto.${tableDefine.id}UpdateDTO;
import ${config.basePackage}${PubUtils.addStrAfterSeparator(config.category,".")}.dto.${tableDefine.id}ViewDTO;
import ${config.basePackage}${PubUtils.addStrAfterSeparator(config.category,".")}.entity.${tableDefine.id}Entity;

/**
 * ${tableDefine.cnname} controller
 *
 * @author ${config.author}
 * @date ${config.nowDate}
 */
public interface ${tableDefine.id}Service extends BaseCrudService<${tableDefine.id}Entity> {

    /**
     * 新增
     * @param dto
     */
    void iSave(${tableDefine.id}AddDTO dto);

	/**
     * 更新
     * @param dto
     */
    void iUpdate(${tableDefine.id}UpdateDTO dto);
	
	/**
     * 根据${pkColumn.dataName}查询详情
     * @param ${pkColumn.dataName}
     * @return
     */
    ${tableDefine.id}ViewDTO iGetById(${pkJavaType} ${pkColumn.dataName});
	
	/**
     * 删除
     * @param ids
     */
	void eventInfoService.iDelete(${pkJavaType}[] ids);
}

